<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
                        @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
		</style>
<script type="text/javascript">
    var t=jQuery.noConflict();
			t(document).ready(function() {
				t('#example').dataTable( {
					"sPaginationType": "full_numbers",
                  "sDom": 'T C lfrtip', 
                    "oTableTools": { 
                    "sSwfPath": "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/swf/copy_csv_xls_pdf.swf", 
                    "aButtons": [ 
                    "xls", 
                    "pdf", 
                    { 
                            "sExtends": "print", 
                            "sButtonText": "Imprimir", 
                            "sInfo": "<br><center><h1>PRESIONAR ESCAPE AL TERMINAR</h1></center>", 
                            "sMessage": "<center><h2><b>TITULO!</b></h2></center>", 
                            "sTitle": "Listado x Obra Social", 
                    }], 
                    },
               } );
	} );
</script>


<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/rpt_matricula/inicio" ?>" method="post">
    <legend>REPORTES DE MATRICULADOS</legend>
    <div class="control-group">
        <label class="control-label" for="select03">SECCION:<?php echo (empty($listar)?$nom_seccion:"TODAS LAS SECCIONES");?></label>
    </div>  
    
    <div id="tablamatriculai" >
        <table id="example" class="table table-bordered table-striped table-condensed">
            
            <thead>
                <tr>
                    <th>Nr</th>
                    <!--<th>MAT</th>-->
                    <th>CEDULA</th>
                    <th>APELLIDO</th>
                    <th>NOMBRE</th>
                    <th>CARRERA</th>
                    <th>CICLO</th>
                    <th>MATR</th>
                    <th>PAR</th>
                    <th>SEC</th>
                    
                    
                </tr>
            </thead>
            <tbody>
                <?php
                $fila=1;
                $id_matr="";
                if (!empty($reporte)) {
                    foreach ($reporte as $i => $repor) {
                     if ($id_matr!=$repor['id_matr']){
                        $id_matr=$repor['id_matr'];
                    ?>
                       
                        <tr>
                            <td> <?php echo $fila; ?></td>
                            <!--<td><?php //echo $repor['nro_matr'] ?></td> -->
                            <td><?php echo $repor['cedula_pers'] ?></td>
                            <td><?php echo $repor['apellido_pers'] ?></td>
                            <td><?php echo $repor['nombre_pers'];echo($repor['estado_matr']==5?"(R)":""); ?></td>
                            <td><?php echo $repor['nombre_car'] ?></td>
                            <td><?php echo ($repor['nombre_cic'])?></td>
                            <td><?php echo($repor['modo_mat']==1?"N":($repor['modo_mat']==2?"N/A":
                                    ($repor['modo_mat']=3?"M":($repor['modo_mat']==4?"A":"C"))));?>
                               </td>
                            <td>  <?php echo ($repor['paralelo'])?></td>
                            <td><?php echo ($repor['seccion']==1?"D":($repor['seccion']==2?"N":"FS"));?></td>
                            
                        </tr>
                        <?php
                        $fila+=1;
                    }
                    }
                }
                ?>
            </tbody>
        </table>  
    </div>


        <div class="controls">
                <button type="submit" class="btn">Volver Datos</button>

        </div> 


</form>


